//
//  BaseModel.m
//  Kaagad Peso
//
//  Created by ZhengChengFeng on 2024/10/15.
//

#import "BaseModel.h"

@implementation BaseModel

MJExtensionLogAllProperties
MJExtensionCodingImplementation

- (id)init{
    if(self=[super init]){
        [BaseModel mj_referenceReplacedKeyWhenCreatingKeyValues:YES];
    }
    return self;
}

- (id)mj_newValueFromOldValue:(id)oldValue property:(MJProperty *)property{
    if (oldValue == nil &&property.type.typeClass == [NSString class]) return @"";
    return oldValue;
}




@end
